<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>腾龙飞凰究极爆杀小说网</title>
    <link rel="stylesheet" href="" th:href="@{/lib/layui/css/layui.css}">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">

    <div th:insert="nav_header/nav"></div>

    <div th:insert="nav_header/header"></div>

    <div class="layui-body">
        <!-- 内容主体区域 -->

        <div>
        <h1 style="color: #06b6ef" align="center" th:text="${article.title}"></h1>
        </br>
            </br>
            </br>

            <h2 style="color: #06b6ef" align="center" th:text="${article.summary}"></h2>

            <span th:text="${article.content}"></span>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">评论</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            </div>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
    </div>
</div>
<script th:src="@{/lib/layui/layui.js}"></script>
<script>
    //JavaScript代码区域
    layui.use(['element','form','table','jquery','layer'], function(){
        var element = layui.element;
        var form = layui.form;
        var table = layui.table;
        var $ = layui.jquery;
        var layer = layui.layer;

        //监听行工具事件
        table.on('tool(test)', function(obj){ //注：tool 是工具条事件名，test 是 table 原始容器的属性 lay-filter="对应的值"
            var data = obj.data //获得当前行数据
                ,layEvent = obj.event; //获得 lay-event 对应的值
            if(layEvent === 'detail'){
                window.location.href = '/article/detail';

            } else if(layEvent === 'del'){
                layer.confirm('真的删除行么', function(index){
                    obj.del(); //删除对应行（tr）的DOM结构
                    layer.close(index);
                    //向服务端发送删除指令
                });
            } else if(layEvent === 'edit'){
                layer.msg('编辑操作');
            }
        });

    })
</script>
<script >


</script>
</body>
</html>